package com.zch.jh.service;

import com.zch.jh.service.dto.ReceiveAddrDTO;

import java.util.List;
import java.util.Optional;

/**
 * Service Interface for managing {@link com.zch.jh.domain.ReceiveAddr}.
 */
public interface ReceiveAddrService {

    /**
     * Save a receiveAddr.
     *
     * @param receiveAddrDTO the entity to save.
     * @return the persisted entity.
     */
    ReceiveAddrDTO save(ReceiveAddrDTO receiveAddrDTO);

    /**
     * Get all the receiveAddrs.
     *
     * @return the list of entities.
     */
    List<ReceiveAddrDTO> findAll();


    /**
     * Get the "id" receiveAddr.
     *
     * @param id the id of the entity.
     * @return the entity.
     */
    Optional<ReceiveAddrDTO> findOne(Long id);

    /**
     * Delete the "id" receiveAddr.
     *
     * @param id the id of the entity.
     */
    void delete(Long id);
}
